package com.iwop.moto.utils.LotteryUtils;

import com.iwop.moto.comm.ConfLottery;

import java.util.HashMap;
import java.util.Map;

/**
 * @author czq
 * @version 1.0
 * @created 2017/3/3 0003.
 */

public class BusinessCounponVersions {

    /**
     * 用户端
     *
     * @return
     */
    public static Map<Double[]/*金额区间*/, Map<Integer[]/*中奖概率区间*/, String[]/*优惠券列表*/>> version5() {

        Map<Double[]/*金额区间*/, Map<Integer[]/*中奖概率区间*/, String[]/*优惠券列表*/>> map = new HashMap();
        //0-9.99区间
        Double interval_0_9d99[] = {0.0, 9.99};
        Map<Integer[], String[]> map1 = new HashMap<>();
        String couponArr[] = {ConfLottery.零元抵用券};
        map1.put(ConfLottery.r_0_100, couponArr);


        //10-14.99区间
        Double interval_10_14d99[] = {10.0, 14.99};
        Map<Integer[], String[]> map2 = new HashMap<>();
        String couponArr1[] = {ConfLottery.一元抵用券};
        map2.put(ConfLottery.r_0_80, couponArr1);
        String couponArr2[] = {ConfLottery.二元抵用券};
        map2.put(ConfLottery.r_80_100, couponArr2);

        //15-22.99元
        Double interval_15_22d99[] = {15.00, 22.99};
        Map<Integer[], String[]> map3 = new HashMap<>();
        String couponArr3[] = {ConfLottery.一元抵用券};
        map3.put(ConfLottery.r_0_80, couponArr3);
        String couponArr4[] = {ConfLottery.二元抵用券};
        map3.put(ConfLottery.r_80_100, couponArr4);

        //23-36.99元
        Double interval_23_36d99[] = {23.00, 36.99};
        Map<Integer[], String[]> map4 = new HashMap<>();
        String couponArr5[] = {ConfLottery.一元抵用券};
        map4.put(ConfLottery.r_0_20, couponArr5);
        String couponArr6[] = {ConfLottery.二元抵用券};
        map4.put(ConfLottery.r_20_95, couponArr6);
        String couponArr7[] = {ConfLottery.三元抵用券};
        map4.put(ConfLottery.r_95_100, couponArr7);

        //37-46.99元
        Double interval_33_46d99[] = {37.00, 46.99};
        Map<Integer[], String[]> map5 = new HashMap<>();
        String couponArr8[] = {ConfLottery.三元抵用券};
        map5.put(ConfLottery.r_0_20, couponArr8);
        String couponArr9[] = {ConfLottery.二元抵用券};
        map5.put(ConfLottery.r_20_80, couponArr9);
        String couponArr10[] = {ConfLottery.四元抵用券};
        map5.put(ConfLottery.r_80_100, couponArr10);

        //47-56.99元
        Double interval_47_56d99[] = {47.00, 56.99};
        Map<Integer[], String[]> map6 = new HashMap<>();
        String couponArr11[] = {ConfLottery.二元抵用券};
        map6.put(ConfLottery.r_0_80, couponArr11);
        String couponArr12[] = {ConfLottery.五元抵用券};
        map6.put(ConfLottery.r_80_90, couponArr12);
        String couponArr13[] = {ConfLottery.二元抵用券};
        map6.put(ConfLottery.r_90_100, couponArr13);

        //57-76.99元
        Double interval_57_76d99[] = {57.00, 76.99};
        Map<Integer[], String[]> map7 = new HashMap<>();
        String couponArr15[] = {ConfLottery.四元抵用券};
        map7.put(ConfLottery.r_0_5, couponArr15);
        String couponArr16[] = {ConfLottery.七元抵用券};
        map7.put(ConfLottery.r_5_15, couponArr16);
        String couponArr17[] = {ConfLottery.三元抵用券};
        map7.put(ConfLottery.r_15_65, couponArr17);
        String couponArr18[] = {ConfLottery.五元抵用券};
        map7.put(ConfLottery.r_65_95, couponArr18);
        String couponArr19[] = {ConfLottery.六元抵用券};
        map7.put(ConfLottery.r_95_100, couponArr19);
//        String couponArr19_1[] = {ConfLottery.五元抵用券};
//        map7.put(ConfLottery.r_95_100, couponArr19_1);

        //77-105.99元
        Double interval_77_105d99[] = {77.00, 96.99};
        Map<Integer[], String[]> map8 = new HashMap<>();
        String couponArr20[] = {ConfLottery.八元抵用券};
        map8.put(ConfLottery.r_0_5, couponArr20);
        String couponArr21[] = {ConfLottery.六元抵用券};
        map8.put(ConfLottery.r_5_15, couponArr21);
        String couponArr22[] = {ConfLottery.四元抵用券};
        map8.put(ConfLottery.r_15_55, couponArr22);
        String couponArr23[] = {ConfLottery.三元抵用券};
        map8.put(ConfLottery.r_55_85, couponArr23);
        String couponArr24[] = {ConfLottery.七元抵用券};
        map8.put(ConfLottery.r_85_95, couponArr24);
        String couponArr25_1[] = {ConfLottery.五元抵用券};
        map8.put(ConfLottery.r_95_100, couponArr25_1);

        //106-148.99元
        Double interval_106_148d99[] = {97.00, 103.99};
        Map<Integer[], String[]> map9 = new HashMap<>();
        String couponArr27[] = {ConfLottery.六元抵用券};
        map9.put(ConfLottery.r_0_20, couponArr27);
        String couponArr28[] = {ConfLottery.四元抵用券};
        map9.put(ConfLottery.r_20_90, couponArr28);
        String couponArr29[] = {ConfLottery.九元抵用券};
        map9.put(ConfLottery.r_90_100, couponArr29);

        //149-217.99元
        Double interval_104_127d99[] = {104.00, 127.99};
        Map<Integer[], String[]> map10 = new HashMap<>();
        String couponArr31[] = {ConfLottery.九元抵用券};
        map10.put(ConfLottery.r_0_10, couponArr31);
        String couponArr32[] = {ConfLottery.七元抵用券};
        map10.put(ConfLottery.r_10_20, couponArr32);
        String couponArr33[] = {ConfLottery.六元抵用券};
        map10.put(ConfLottery.r_20_50, couponArr33);
        String couponArr34[] = {ConfLottery.五元抵用券};
        map10.put(ConfLottery.r_50_80, couponArr34);
        String couponArr35_1[] = {ConfLottery.八元抵用券};
        map10.put(ConfLottery.r_80_95, couponArr35_1);
        String couponArr37_3[] = {ConfLottery.十元抵用券};
        map10.put(ConfLottery.r_95_100, couponArr37_3);

        //218-263.99
        Double interval_127_147d99[] = {128.00, 147.99};
        Map<Integer[], String[]> map11 = new HashMap<>();
        String couponArr35[] = {ConfLottery.八元抵用券};
        map11.put(ConfLottery.r_0_5, couponArr35);
        String couponArr36[] = {ConfLottery.十一抵用券};
        map11.put(ConfLottery.r_5_15, couponArr36);
        String couponArr37[] = {ConfLottery.七元抵用券};
        map11.put(ConfLottery.r_15_45, couponArr37);
        String couponArr38[] = {ConfLottery.六元抵用券};
        map11.put(ConfLottery.r_45_85, couponArr38);
        String couponArr38_1[] = {ConfLottery.九元抵用券};
        map11.put(ConfLottery.r_85_95, couponArr38_1);
        String couponArr38_2[] = {ConfLottery.十元抵用券};
        map11.put(ConfLottery.r_95_100, couponArr38_2);


        //264-325.99
        Double interval_148_151d99[] = {148.00, 151.99};
        Map<Integer[], String[]> map12 = new HashMap<>();
        String couponArr39[] = {ConfLottery.六元抵用券};
        map12.put(ConfLottery.r_0_20, couponArr39);
        String couponArr40[] = {ConfLottery.七元抵用券};
        map12.put(ConfLottery.r_20_95, couponArr40);
        String couponArr41[] = {ConfLottery.十二抵用券};
        map12.put(ConfLottery.r_95_100, couponArr41);


        //264-325.99
        Double interval_152_178d99[] = {152.00, 178.99};
        Map<Integer[], String[]> map13 = new HashMap<>();
        String couponArr42[] = {ConfLottery.十一抵用券};
        map13.put(ConfLottery.r_0_5, couponArr42);
        String couponArr43[] = {ConfLottery.七元抵用券};
        map13.put(ConfLottery.r_5_15, couponArr43);
        String couponArr44[] = {ConfLottery.九元抵用券};
        map13.put(ConfLottery.r_15_45, couponArr44);
        String couponArr45[] = {ConfLottery.八元抵用券};
        map13.put(ConfLottery.r_45_85, couponArr45);
        String couponArr46[] = {ConfLottery.十元抵用券};
        map13.put(ConfLottery.r_85_95, couponArr46);
        String couponArr47[] = {ConfLottery.十三抵用券};
        map13.put(ConfLottery.r_95_100, couponArr47);


        //264-325.99
        Double interval_179_198d99[] = {179.00, 198.99};
        Map<Integer[], String[]> map14 = new HashMap<>();
        String couponArr48[] = {ConfLottery.十五抵用券};
        map14.put(ConfLottery.r_0_5, couponArr48);
        String couponArr49[] = {ConfLottery.十元抵用券};
        map14.put(ConfLottery.r_5_15, couponArr49);
        String couponArr50[] = {ConfLottery.九元抵用券};
        map14.put(ConfLottery.r_15_45, couponArr50);
        String couponArr51[] = {ConfLottery.八元抵用券};
        map14.put(ConfLottery.r_45_85, couponArr51);
        String couponArr52[] = {ConfLottery.十一抵用券};
        map14.put(ConfLottery.r_85_95, couponArr52);
        String couponArr53[] = {ConfLottery.十三抵用券};
        map14.put(ConfLottery.r_95_100, couponArr53);


        //264-325.99
        Double interval_199_201d99[] = {199.00, 201.99};
        Map<Integer[], String[]> map15 = new HashMap<>();
        String couponArr54[] = {ConfLottery.八元抵用券};
        map15.put(ConfLottery.r_0_20, couponArr54);
        String couponArr55[] = {ConfLottery.十元抵用券};
        map15.put(ConfLottery.r_20_95, couponArr55);
        String couponArr56[] = {ConfLottery.十六抵用券};
        map15.put(ConfLottery.r_95_100, couponArr56);


        //264-325.99
        Double interval_202_246d99[] = {202.00, 246.99};
        Map<Integer[], String[]> map16 = new HashMap<>();
        String couponArr57[] = {ConfLottery.二十抵用券};
        map16.put(ConfLottery.r_0_20, couponArr57);
        String couponArr58[] = {ConfLottery.十元抵用券};
        map16.put(ConfLottery.r_20_95, couponArr58);
        String couponArr59[] = {ConfLottery.八元抵用券};
        map16.put(ConfLottery.r_95_100, couponArr59);
        String couponArr60[] = {ConfLottery.九元抵用券};
        map16.put(ConfLottery.r_95_100, couponArr60);
        String couponArr61[] = {ConfLottery.十八抵用券};
        map16.put(ConfLottery.r_95_100, couponArr61);
        String couponArr62[] = {ConfLottery.十五抵用券};
        map16.put(ConfLottery.r_95_100, couponArr62);

        //264-325.99
        Double interval_247_251d99[] = {247.00, 251.99};
        Map<Integer[], String[]> map17 = new HashMap<>();
        String couponArr63[] = {ConfLottery.二十一抵用券};
        map17.put(ConfLottery.r_0_20, couponArr63);
        String couponArr64[] = {ConfLottery.十五抵用券};
        map17.put(ConfLottery.r_20_95, couponArr64);
        String couponArr65[] = {ConfLottery.九元抵用券};
        map17.put(ConfLottery.r_95_100, couponArr65);


        //264-325.99
        Double interval_252_297d99[] = {252.00, 297.99};
        Map<Integer[], String[]> map18 = new HashMap<>();
        String couponArr66[] = {ConfLottery.二十二抵用券};
        map18.put(ConfLottery.r_0_20, couponArr66);
        String couponArr67[] = {ConfLottery.十六抵用券};
        map18.put(ConfLottery.r_20_95, couponArr67);
        String couponArr68[] = {ConfLottery.十五抵用券};
        map18.put(ConfLottery.r_95_100, couponArr68);
        String couponArr69[] = {ConfLottery.十二抵用券};
        map18.put(ConfLottery.r_0_20, couponArr69);
        String couponArr70[] = {ConfLottery.十元抵用券};
        map18.put(ConfLottery.r_20_95, couponArr70);
        String couponArr71[] = {ConfLottery.十八抵用券};
        map18.put(ConfLottery.r_95_100, couponArr71);


        //264-325.99
        Double interval_298_301d99[] = {298.00, 301.99};
        Map<Integer[], String[]> map19 = new HashMap<>();
        String couponArr72[] = {ConfLottery.十五抵用券};
        map19.put(ConfLottery.r_0_20, couponArr72);
        String couponArr73[] = {ConfLottery.十二抵用券};
        map19.put(ConfLottery.r_20_95, couponArr73);
        String couponArr74[] = {ConfLottery.二十抵用券};
        map19.put(ConfLottery.r_95_100, couponArr74);


        //264-325.99
        Double interval_302_347d99[] = {302.00, 347.99};
        Map<Integer[], String[]> map20 = new HashMap<>();
        String couponArr75[] = {ConfLottery.二十五抵用券};
        map20.put(ConfLottery.r_0_5, couponArr75);
        String couponArr76[] = {ConfLottery.十八抵用券};
        map20.put(ConfLottery.r_5_15, couponArr76);
        String couponArr77[] = {ConfLottery.十五抵用券};
        map20.put(ConfLottery.r_15_45, couponArr77);
        String couponArr78[] = {ConfLottery.十二抵用券};
        map20.put(ConfLottery.r_45_85, couponArr78);
        String couponArr79[] = {ConfLottery.十六抵用券};
        map20.put(ConfLottery.r_85_95, couponArr79);
        String couponArr80[] = {ConfLottery.二十抵用券};
        map20.put(ConfLottery.r_95_100, couponArr80);


        //264-325.99
        Double interval_348_398d99[] = {348.00, 398.99};
        Map<Integer[], String[]> map21 = new HashMap<>();
        String couponArr81[] = {ConfLottery.三十抵用券};
        map21.put(ConfLottery.r_0_5, couponArr81);
        String couponArr82[] = {ConfLottery.二十抵用券};
        map21.put(ConfLottery.r_5_15, couponArr82);
        String couponArr83[] = {ConfLottery.十五抵用券};
        map21.put(ConfLottery.r_15_45, couponArr83);
        String couponArr84[] = {ConfLottery.十三抵用券};
        map21.put(ConfLottery.r_45_85, couponArr84);
        String couponArr85[] = {ConfLottery.十六抵用券};
        map21.put(ConfLottery.r_85_95, couponArr85);
        String couponArr86[] = {ConfLottery.二十五抵用券};
        map21.put(ConfLottery.r_95_100, couponArr86);

        //264-325.99
        Double interval_399_401d99[] = {399.00, 401.99};
        Map<Integer[], String[]> map22 = new HashMap<>();
        String couponArr87[] = {ConfLottery.十五抵用券};
        map22.put(ConfLottery.r_0_20, couponArr87);
        String couponArr88[] = {ConfLottery.二十抵用券};
        map22.put(ConfLottery.r_20_95, couponArr88);
        String couponArr89[] = {ConfLottery.三十三抵用券};
        map22.put(ConfLottery.r_95_100, couponArr89);

        //264-325.99
        Double interval_402_496d99[] = {402.00, 496.99};
        Map<Integer[], String[]> map23 = new HashMap<>();
        String couponArr90[] = {ConfLottery.三十六抵用券};
        map23.put(ConfLottery.r_0_5, couponArr90);
        String couponArr91[] = {ConfLottery.二十抵用券};
        map23.put(ConfLottery.r_5_15, couponArr91);
        String couponArr92[] = {ConfLottery.十六抵用券};
        map23.put(ConfLottery.r_15_45, couponArr92);
        String couponArr93[] = {ConfLottery.十八抵用券};
        map23.put(ConfLottery.r_45_85, couponArr93);
        String couponArr94[] = {ConfLottery.二十二抵用券};
        map23.put(ConfLottery.r_85_95, couponArr94);
        String couponArr95[] = {ConfLottery.三十三抵用券};
        map23.put(ConfLottery.r_95_100, couponArr95);


        //264-325.99
        Double interval_497_502d99[] = {497.00, 502.99};
        Map<Integer[], String[]> map24 = new HashMap<>();
        String couponArr96[] = {ConfLottery.三十八抵用券};
        map24.put(ConfLottery.r_0_20, couponArr96);
        String couponArr97[] = {ConfLottery.十八抵用券};
        map24.put(ConfLottery.r_20_95, couponArr97);
        String couponArr98[] = {ConfLottery.二十五抵用券};
        map24.put(ConfLottery.r_95_100, couponArr98);


        //264-325.99
        Double interval_503_756d99[] = {503.00, 756.99};
        Map<Integer[], String[]> map25 = new HashMap<>();
        String couponArr99[] = {ConfLottery.四十抵用券};
        map25.put(ConfLottery.r_0_5, couponArr99);
        String couponArr100[] = {ConfLottery.二十五抵用券};
        map25.put(ConfLottery.r_5_15, couponArr100);
        String couponArr101[] = {ConfLottery.三十抵用券};
        map25.put(ConfLottery.r_15_45, couponArr101);
        String couponArr102[] = {ConfLottery.二十六抵用券};
        map25.put(ConfLottery.r_45_85, couponArr102);
        String couponArr103[] = {ConfLottery.二十五抵用券};
        map25.put(ConfLottery.r_85_95, couponArr103);
        String couponArr104[] = {ConfLottery.四十二抵用券};
        map25.put(ConfLottery.r_95_100, couponArr104);


        //264-325.99
        Double interval_757_996d99[] = {757.00, 996.99};
        Map<Integer[], String[]> map26 = new HashMap<>();
        String couponArr105[] = {ConfLottery.五十抵用券};
        map26.put(ConfLottery.r_0_5, couponArr105);
        String couponArr106[] = {ConfLottery.三十三抵用券};
        map26.put(ConfLottery.r_5_15, couponArr106);
        String couponArr107[] = {ConfLottery.三十五抵用券};
        map26.put(ConfLottery.r_15_45, couponArr107);
        String couponArr108[] = {ConfLottery.四十抵用券};
        map26.put(ConfLottery.r_45_85, couponArr108);
        String couponArr109[] = {ConfLottery.三十六抵用券};
        map26.put(ConfLottery.r_85_95, couponArr109);
        String couponArr110[] = {ConfLottery.六十六抵用券};
        map26.put(ConfLottery.r_95_100, couponArr110);


        //997-1326.99
        Double interval_997_1326d99[] = {997.00, 1326.99};
        Map<Integer[], String[]> mapA = new HashMap<>();
        String couponArrA[] = {ConfLottery.三十五抵用券, ConfLottery.四十五抵用券};
        mapA.put(ConfLottery.r_0_100, couponArrA);

        //1327-1895.99
        Double interval_1327_1895d99[] = {1327.00, 1895.99};
        Map<Integer[], String[]> mapB = new HashMap<>();
        String couponArrB[] = {ConfLottery.六十抵用券, ConfLottery.五十五抵用券};
        mapB.put(ConfLottery.r_0_100, couponArrB);

        //1896-2332.99
        Double interval_1896_2332d99[] = {1896.00, 2332.99};
        Map<Integer[], String[]> mapC = new HashMap<>();
        String couponArrC[] = {ConfLottery.五十抵用券, ConfLottery.七十抵用券};
        mapC.put(ConfLottery.r_0_100, couponArrC);

        //2333-2895.99
        Double interval_2333_2895d99[] = {2333.00, 2895.99};
        Map<Integer[], String[]> mapD = new HashMap<>();
        String couponArrD[] = {ConfLottery.六十抵用券,ConfLottery.一百抵用券};
        mapD.put(ConfLottery.r_0_100, couponArrD);

        //2896-3346.99
        Double interval_2896_3346d99[] = {2896.00, 3346.99};
        Map<Integer[], String[]> mapE = new HashMap<>();
        String couponArrE[] = {ConfLottery.六十抵用券, ConfLottery.四十五抵用券,ConfLottery.一百抵用券};
        mapE.put(ConfLottery.r_0_100, couponArrE);

        //3347-3826.99
        Double interval_3347_3826d99[] = {3347.00, 3826.99};
        Map<Integer[], String[]> mapF = new HashMap<>();
        String couponArrF[] = {ConfLottery.七十抵用券, ConfLottery.五十五抵用券,ConfLottery.一百抵用券};
        mapF.put(ConfLottery.r_0_100, couponArrF);

        //3827-4365.99
        Double interval_3827_4365d99[] = {3827.00, 4365.99};
        Map<Integer[], String[]> mapG = new HashMap<>();
        String couponArrG[] = {ConfLottery.七十五抵用券, ConfLottery.六十抵用券,ConfLottery.一百五十抵用券};
        mapG.put(ConfLottery.r_0_100, couponArrG);

        //4367-7457.99
        Double interval_4367_7457d99[] = {4367.00, 7457.99};
        Map<Integer[], String[]> mapH = new HashMap<>();
        String couponArrH[] = {ConfLottery.八十抵用券, ConfLottery.五十五抵用券,ConfLottery.一百抵用券,ConfLottery.一百五十抵用券};
        mapH.put(ConfLottery.r_0_100, couponArrH);

        //7458-13574.99
        Double interval_7458_13574d99[] = {7458.00, 13574.99};
        Map<Integer[], String[]> mapI = new HashMap<>();
        String couponArrI[] = {ConfLottery.八十抵用券, ConfLottery.五十五抵用券,ConfLottery.一百五十抵用券,ConfLottery.二百抵用券};
        mapI.put(ConfLottery.r_0_100, couponArrI);

        //13575-99999999
        Double interval_13575_99999999d99[] = {13575.00, 99999999.99};
        Map<Integer[], String[]> mapK = new HashMap<>();
        String couponArrK[] = {ConfLottery.八十抵用券, ConfLottery.五十五抵用券,ConfLottery.一百五十抵用券,ConfLottery.二百抵用券,ConfLottery.三百抵用券};
        mapK.put(ConfLottery.r_0_100, couponArrK);


//-----
        map.put(interval_0_9d99, map1);
        map.put(interval_10_14d99, map2);
        map.put(interval_15_22d99, map3);
        map.put(interval_23_36d99, map4);
        map.put(interval_33_46d99, map5);
        map.put(interval_47_56d99, map6);
        map.put(interval_57_76d99, map7);
        map.put(interval_77_105d99, map8);
        map.put(interval_106_148d99, map9);
        map.put(interval_104_127d99, map10);
        map.put(interval_127_147d99, map11);
        map.put(interval_148_151d99, map12);
        map.put(interval_152_178d99, map13);
        map.put(interval_179_198d99, map14);
        map.put(interval_199_201d99, map15);
        map.put(interval_202_246d99, map16);
        map.put(interval_247_251d99, map17);
        map.put(interval_252_297d99, map18);
        map.put(interval_298_301d99, map19);
        map.put(interval_302_347d99, map20);
        map.put(interval_348_398d99, map21);
        map.put(interval_399_401d99, map22);
        map.put(interval_402_496d99, map23);
        map.put(interval_497_502d99, map24);
        map.put(interval_503_756d99, map25);
        map.put(interval_757_996d99, map26);
        map.put(interval_997_1326d99, mapA);
        map.put(interval_1327_1895d99, mapB);
        map.put(interval_1896_2332d99, mapC);
        map.put(interval_2333_2895d99, mapD);
        map.put(interval_2896_3346d99, mapE);
        map.put(interval_3347_3826d99, mapF);
        map.put(interval_3827_4365d99, mapG);
        map.put(interval_4367_7457d99, mapH);
        map.put(interval_7458_13574d99, mapI);
        map.put(interval_13575_99999999d99, mapK);
        return map;

    }

}
